import type { AppRouteModule } from '@/router/types'

import { LAYOUT } from '@/router/constant'
import { t } from '@/hooks/web/useI18n'

const alarm: AppRouteModule = {
  path: '/alarm',
  name: 'Alarm',
  component: LAYOUT,
  redirect: '/alarm/notify',
  meta: {
    // hideChildrenInMenu: true,
    icon: 'ant-design:alert-outlined',
    title: t('routes.alarm.alarm'),
    orderNo: 5,
  },
  children: [
    {
      path: 'notify',
      name: 'Alarm',
      component: () => import('@/views/alarm/notify/index.vue'),
      meta: {
        title: t('routes.alarm.notify'),
        // hideMenu: true,
      },
    },
    {
      path: 'type',
      name: 'TypeManage',
      meta: {
        title: t('routes.collection.type'),
        // ignoreKeepAlive: true,
      },
      component: () => import('@/views/alarm/type/index.vue'),
    },
    // {
    //   path: 'add',
    //   name: 'AddNew',
    //   component: () => import('@/views/alarm/index.vue'),
    //   meta: {
    //     title: t('routes.alarm.addNew'),
    //     // hideMenu: true,
    //   },
    // },
  ],
}

export default alarm
